<!DOCTYPE html>
<html>
	<head>
		<meta charset="UTF-8">
		<title>我的助理</title>
		<meta name="renderer" content="webkit">
		<META HTTP-EQUIV="Pragma" CONTENT="no-cache">
		<meta http-equiv="X-UA-Compatible" content="IE=edge,chrome=1">
		<meta name="viewport" content="width=device-width,user-scalable=yes, minimum-scale=0.4, initial-scale=0.8,target-densitydpi=low-dpi" />
		<link rel="stylesheet" type="text/css" href="../commonCss/common.css" />
		<link rel="stylesheet" type="text/css" href="myAssistant.css" />
	</head>

	<script id="assistantTpl" type="text/html">
		<tr>
			<td>{{d.account}}</td>
			<td>{{d.name}}</td>
			<td>{{d.mobile}}</td>
			<td>{{d.email}}</td>
			<td>{{d.wechat}}</td>
			<td>{{d.address}}</td>
			<td class="td-manage">
				<a title="编辑"  class="editAssistant" data-id="{{d.id}}" href="javascript:;">
					<i class="layui-icon" data-id="{{d.id}}">&#xe642;</i>
				</a>
				<a title="删除" class="deleteAssistant" data-id="{{d.id}}" href="javascript:;">
					<i class="layui-icon" data-id="{{d.id}}">&#xe640;</i>
				</a>
			</td>
		</tr>
	</script>
	<body>
		<!-- <div class="myAssistant_h5">我的助理页面</div> -->
		<div class="page_header">
			<span>工作台</span>
			<span class="line">/</span>
			<span>我的助理</span>
		</div>
		<div class="page_h5 myAssistant_h5">
			<div class="operation_btns clearfix">
				<div class="layui-btn layui-btn-normal add_btn"><i class="layui-icon"></i>助理</div>
			</div>

			<div class="layui-card-body layui-table-body layui-table-main">
				<table class="layui-table">
					<thead>
						<tr>
							<th>账号</th>
							<th>姓名</th>
							<th>手机号</th>
							<th>电子邮箱</th>
							<th>微信号</th>
							<th>联系地址</th>
							<th>操作</th>
						</tr>
					</thead>
					<tbody class="assistantList">

					</tbody>
				</table>
			</div>
		</div>

		<div class="modal JR_hide" id="myModal">
			<div class="modal-dialog">
				<div class="modal-content">
					<div class="modal-header">
						<button type="button" class="close">×</button>
						<h4 class="modal-title">添加助理</h4>
					</div>

					<div class="modal-body">
						<form class="layui-form" action="" id="addNewAssistantForm">
							<div class="layui-form-item">
								<label class="layui-form-label">登录账号</label>
								<div class="layui-input-block">
									<input type="text" class="layui-input account save_val" name="account" required lay-verify="required" placeholder=""
									 autocomplete="off">
								</div>
							</div>
							<div class="layui-form-item">
								<label class="layui-form-label">登录密码</label>
								<div class="layui-input-block">
									<input type="text" class="layui-input password save_val" name="password" required lay-verify="required" placeholder=""
										   autocomplete="off">
								</div>
							</div>

							<div class="layui-form-item">
								<label class="layui-form-label">姓名</label>
								<div class="layui-input-block">
									<input type="text" class="layui-input name save_val" name="name" required lay-verify="required" placeholder=""
										   autocomplete="off">
								</div>
							</div>

							<div class="layui-form-item">
								<label class="layui-form-label">手机号</label>
								<div class="layui-input-block">
									<input type="text" class="layui-input mobile save_val" name="mobile" required lay-verify="required" placeholder=""
									 autocomplete="off">
								</div>
							</div>

							<div class="layui-form-item">
								<label class="layui-form-label">电子邮箱</label>
								<div class="layui-input-block">
									<input type="text" class="layui-input email save_val" name="email" required lay-verify="required" placeholder=""
									 autocomplete="off">
								</div>
							</div>

							<div class="layui-form-item">
								<label class="layui-form-label">微信号</label>
								<div class="layui-input-block">
									<input type="text" class="layui-input wechat save_val" name="wechat" required lay-verify="required" placeholder=""
									autocomplete="off">
								</div>
							</div>

							<div class="layui-form-item">
								<label class="layui-form-label">联系地址</label>
								<div class="layui-input-block">
									<input type="text" class="layui-input address save_val" name="address" required lay-verify="required" placeholder=""
									autocomplete="off">
								</div>
							</div>
						</form>
					</div>

					<div class="modal-footer">
						<div class="layui-btn layui-btn-primary" id="">取消</div>
						<div class="layui-btn layui-btn-normal" id="submitNewAssistant">提交</div>
					</div>
				</div>
			</div>
		</div>


		<script src="../commonJs/common.js" type="text/javascript" charset="utf-8"></script>
		<script src="myAssistant.js" type="text/javascript" charset="utf-8"></script>
	</body>

</html>
